import request from '@/utils/request'

// -----------------1、商品类型(增删查改)----------------------
// 1、搜索
export const getClassSearch = (data) =>
  request.get('/api/vm-service/skuClass/search', { params: data })

// 2、新建
export const getClassNewOpen = (data) =>
  request.post('/api/vm-service/skuClass', data)

// 3、修改
export const getClassEdit = (id, params) =>
  request.put(`/api/vm-service/skuClass/${id}`, params)

// 4、删除
export const getClassDelete = (id) =>
  request.delete(`/api/vm-service/skuClass/${id}`)

// -----------------2、商品管理----------------------
// 1、搜索
export const getManagementSearch = (data) =>
  request.get('/api/vm-service/sku/search', { params: data })

// 2、新建
export const getManagementNewOpen = (data) =>
  request.post('/api/vm-service/sku', data)

// 3、导入数据
export const getManagementData = (data) =>
  request.post('/api/vm-service/sku/upload', data)

// 4、修改
export const getManagementEdit = (skuId, params) =>
  request.put(`/api/vm-service/sku/${skuId}`, params)
// 5、图片上传
export const getpicc = (data) =>
  request.post('/api/vm-service/sku/fileUpload', data)
// -----------------3、策略管理----------------------
// 1、搜索
// export const getStrategySearch

// 2、新建
// export const getStrategyNewOpen

// 3、查看详情
// export const getStrategyDetails

// 4、修改
// export const getStrategyEdit

// 5、删除
// export const getStrategyDelete
